<style>
.welcome{
	margin:10px;
	color:#FFF;
}

.topnav{
position: fixed;
  _position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  _width: 98.7%;
  z-index: 5;
  min-width: 1004px;
  height: 28px;
  background: #555;;
  font-size: 12px;
  line-height: 22px;
  text-align: left;
}
.bar{
  height: 28px;
  line-height: 28px;
  padding: 4px 1px 4px 5px;
  overflow: hidden;
  cursor: pointer;
  color:#fff;
}
a{
	margin:5px;
	color:#fff;
}
</style>


<div class="topnav">
<if condition="$Think.session.username eq ''">
<span class="bar" onclick="window.location.href='/index.php/Home/Login/index'">登录</span>
<span class="bar" onclick="window.location.href='/index.php/Home/Login/signup'">注册</span>
<else/>
<span class="welcome">欢迎你，{$Think.session.username}</span>
<span>|</span>
<span><a href="__APP__/Home/Index/logout">退出</a></span>
</if>
<span class="bar"onclick="window.location.href='/index.php/Home/Index/report'"><img src="__PUBLIC__/images/iconfont-fabiao.png">&nbsp;写日志</span>
</div>